<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module functions</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>functions</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:d%3A%5Cworkspace%5Csrc%5Ctest-platform%5Capps%5Capi_test%5Crunner%5Ccore%5Cbuiltin%5Cfunctions.py">d:\workspace\src\test-platform\apps\api_test\runner\core\builtin\functions.py</a></font></td></tr></table>
    <p><tt>@author:TXU<br>
@file:functions.py<br>
@time:2021/10/26<br>
@email:tao.xu2008@outlook.com<br>
@description:&nbsp;预置的函数，测试设计中直接调用</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="datetime.html">datetime</a><br>
</td><td width="25%" valign=top><a href="random.html">random</a><br>
</td><td width="25%" valign=top><a href="string.html">string</a><br>
</td><td width="25%" valign=top><a href="time.html">time</a><br>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-gen_random_string"><strong>gen_random_string</strong></a>(str_len: int) -&gt; str</dt><dd><tt>生成指定长度的随机字符串<br>
:param&nbsp;str_len:&nbsp;字符串长度<br>
:return:</tt></dd></dl>
 <dl><dt><a name="-get_current_date"><strong>get_current_date</strong></a>(fmt: str = '%Y-%m-%d') -&gt; str</dt><dd><tt>获取当前时间，格式自定义，默认：年-月-日<br>
:param&nbsp;fmt:&nbsp;时间格式<br>
:return:</tt></dd></dl>
 <dl><dt><a name="-get_timestamp"><strong>get_timestamp</strong></a>(str_len: int = 13) -&gt; str</dt><dd><tt>获取时间戳，长度&nbsp;0~16<br>
:param&nbsp;str_len:&nbsp;时间戳长度，0~16，默认13<br>
:return:</tt></dd></dl>
 <dl><dt><a name="-sleep"><strong>sleep</strong></a>(n_secs: int)</dt><dd><tt>sleep&nbsp;n&nbsp;秒<br>
:param&nbsp;n_secs:&nbsp;sleep时间，单位：秒<br>
:return:</tt></dd></dl>
</td></tr></table>
</body></html>